package com.his.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.his.bean.DzmHisPurchase;
import com.his.mapper.DzmHisPurchaseMapper;
import com.his.service.DzmHisPurchaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class DzmHisPurchaseServiceImpl extends ServiceImpl<DzmHisPurchaseMapper, DzmHisPurchase>
        implements DzmHisPurchaseService {
    @Autowired
    DzmHisPurchaseMapper dzmHisPurchaseMapper;

    @Override
    public List<DzmHisPurchase> dzmHisPurchase_list(DzmHisPurchase dzmHisPurchase) {
        return dzmHisPurchaseMapper.dzmHisPurchase_list(dzmHisPurchase);
    }

    @Override
    public int dzmHisPurchase_insert(DzmHisPurchase dzmHisPurchase) {
        return dzmHisPurchaseMapper.dzmHisPurchase_insert(dzmHisPurchase);
    }

    @Override
    public int dzmHisPurchase_update(DzmHisPurchase dzmHisPurchase) {
        return dzmHisPurchaseMapper.dzmHisPurchase_update(dzmHisPurchase);
    }

    @Override
    public DzmHisPurchase dzmHisPurchase_update_getid(Integer purchaseId) {
        return dzmHisPurchaseMapper.dzmHisPurchase_update_getid(purchaseId);
    }

    @Override
    public Integer dzmHisPurchase_delete(Integer purchaseId) {
        return dzmHisPurchaseMapper.dzmHisPurchase_delete(purchaseId);
    }

    @Override
    public List<DzmHisPurchase> dzmHisPurchase_review_the_drugs(DzmHisPurchase dzmHisPurchase) {
        return dzmHisPurchaseMapper.dzmHisPurchase_review_the_drugs(dzmHisPurchase);
    }

    @Override
    public int dzmHisPurchase_update_state(String batchesOfInventoryId) {
        return dzmHisPurchaseMapper.dzmHisPurchase_update_state(batchesOfInventoryId);
    }
}
